<template>
  <custom-page class="search">
    <template #header>
      <view class="search-header">
        <uni-search-bar radius="5" placeholder="搜索股票代码/名称" clearButton="always" cancelButton="always" @confirm="onSearch" @cancel="onCancel" />
      </view>
    </template>
    <view class="search-content">
      <view class="search-item" v-for="item in list" :key="item">
        <view class="title">新宁物流</view>
        <view class="search-desc">
          <text class="search-desc-area">
            SZ
          </text>
          <text class="search-desc-area-text">356789</text>
        </view>
      </view>
    </view>
  </custom-page>
</template>

<script>
export default {
  data() {
    return {
      list: new Array(30),
    }
  },
  onLoad() {},
  methods: {
    onSearch() {

    },
    onCancel() {
      uni.navigateBack();
    }
  },
}
</script>

<style lang="scss">
.search {
  .search-header {
    width: 100%;
    padding-top: var(--status-bar-height);
  }
  .search-content {
    padding: 0 30rpx;
    background-color: #fff;
    .search-item {
      padding: 10rpx 0;
      font-size: 32rpx;
      .search-desc {
        display: flex;
        align-items: center;
        margin-top: 12rpx;
        .search-desc-area {
          padding: 0 4rpx;
          font-size: 20rpx;
          background-color: #007aff;
          color: #fff;
        }
        .search-desc-area-text {
          padding-left: 10rpx;
          color: #8C8C8C;
        }
      }
    }
  }
}
</style>
